package com.igeek.d0607;

import java.io.Serializable;

/**
 * @Author: zhiyu
 * @Date:19:23
 * @DESC:
 */
public class User implements Serializable {
    private String name;
    private Integer age;
    private Phone phone;

    public User(String name, Integer age, Phone phone) {
        this.name = name;
        this.age = age;
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Phone getPhone() {
        return phone;
    }

    public void setPhone(Phone phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", phone=" + phone +
                '}';
    }
}
